package com.huage.courseplatform.application.model.param;

import com.baomidou.mybatisplus.annotation.TableName;
import com.huage.courseplatform.framework.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="课时模板参数",description="课时模板参数")
public class PeriodTemplatePARAM implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "id不能为空", groups = Update.class)
    @ApiModelProperty(value = "模板ID")
    private String id;

    @NotEmpty(message = "商户id不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "商户ID")
    private String businessId;

    @NotEmpty(message = "模板名称不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "模板名称")
    private String name;

    @ApiModelProperty(value = "模板备注")
    private String remark;

    @NotNull(message = "是否默认不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "是否默认")
    private Integer isTacit;

    @ApiModelProperty(value = "模板细节列表")
    List<PeriodTemplateItemPARAM> periodTemplateItemPARAMList;

}
